<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?=getValInArr(getSess(SESS_DIC),array('webInfo','webtitle'))?></title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
    <meta content="telephone=no" name="format-detection"/>
    <script src="<?php echo base_url().'public/home/js/' ?>jquery.js"></script>
    <?php include_once "public/home/html/bootstrap.php"  ?>
    <?php include_once "public/home/html/imgupload.php"  ?>
    <?php include_once "public/home/html/alert.php"  ?>   
    <script type="text/javascript" src="<?php echo base_url().'public/home/js/' ?>function.js"></script>
    <link rel="stylesheet" href="<?php echo base_url().'public/h_ui/lib/Hui-iconfont/1.0.8/' ?>iconfont.css">
    <link rel="stylesheet" href="<?php echo base_url().'public/home/css/' ?>mui.min.css">
    <?php include_once "public/home/html/alert.php"  ?>   
    <script type="text/javascript" src="<?php echo base_url().'public/home/js/' ?>function.js"></script>
    <script type="text/javascript" src="<?php echo base_url().'public/home/js/' ?>supervisor_feedback.js"></script>
    <link href="<?php echo base_url().'public/home/bootstrap-select/docs/docs/dist/css/'?>bootstrap-select.min.css" rel="stylesheet" />
    <script src="<?php echo base_url().'public/home/bootstrap-select/docs/docs/dist/js/'?>bootstrap-select.min.js"></script>
    <script src="<?php echo base_url().'public/home/bootstrap-select/docs/docs/dist/js/i18n/'?>defaults-zh_CN.min.js"></script>
    <link rel="stylesheet" href="<?php echo base_url() . 'public/home/css/' ?>index.css">
</head>
<body>
    <style>
        body {
            /* background-color: #eee; */
        }

        #img_size {
            height: 20px;
            width: 20px;
            margin-top: 5px;
            margin-left: 12px;
        }

        .clear {
            clear: both;
        }

        p {
            margin: 0 !important;
        }

        .aui-img-logo img {
            border-radius: 50%
        }
        
    </style>
    <input type="hidden" name='url' value="<?php echo base_url()?>">
    <input type="hidden" name='sub_role' value="<?php echo $_SESSION[SESS_USER_HOME]['role_id']?>">
    <div class="search-head header mui-bar mui-bar-nav row" style="background-color: #f7f9fa; border:none;">
        <div class="col-xs-1" style="margin-top: 3%">
            <a class=" Hui-iconfont Hui-iconfont-slider-left" href="javascript:void(0)" onclick="history.back();" style="color: #C9C9C9"></a>
        </div>
        <div class="col-xs-11">
            <h1 class="mui-title" style="color:#333;margin-left: -5%">信息反馈</h1>
        </div>
    </div>

    <div action="" class="form"  style='margin-top: 20%'> 
    <?php
            $role = empty($_SESSION[SESS_USER_HOME]['sub_role_id'])? array() : explode(',', $_SESSION[SESS_USER_HOME]['sub_role_id']);
            array_push($role, $_SESSION[SESS_USER_HOME]['role_id']);
        ?>
        <div>
            <?php if ( in_array(WebRole::StudentInfoOfficer[XPHEnum::Value], $role) || in_array(WebRole::UnitStudentInfoOfficer[XPHEnum::Value], $role) ) :
            ?>
            <a href="<?php echo base_url() . 'Home/Student_feedback/' ?>Index" class="aui-flex">
            <?php else: ?>
            <a href="<?php echo base_url() . 'Home/Supervisor_feedback/' ?>Index" class="aui-flex">
            <?php endif?>
                <div class="aui-cou-img">
                    <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-003.png" alt="">
                </div>
                <div class="aui-flex-box">
                    <p>新建信息反馈</p>
                </div>
            </a>
        </div>
        <div>
            <a href="<?php echo base_url() . 'Home/My_feedback/Index/' . $_SESSION[SESS_USER_HOME]['id']  ?>" class="aui-flex">
                <div class="aui-cou-img">
                    <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-002.png" alt="">
                </div>
                <div class="aui-flex-box">
                    <p>我的反馈</p>
                </div>
            </a>
        </div>
        
        <?php if(in_array(WebRole::UnitSupervisorGroupLeader[XPHEnum::Value], $role) ||in_array(WebRole::Manage[XPHEnum::Value], $role)) :?>
        <div>
            <a href="<?php echo base_url().'Home/My_feedback/Manage' ?>" class="aui-flex">
                <div class="aui-cou-img">
                    <img src="<?php echo base_url().'public/home/images/' ?>feedback.png" alt="">
                </div>
                <div class="aui-flex-box">
                    <p>反馈管理</p>
                </div>
            </a>
        </div>
        <?php endif ?>
    </div>
</body>
</html>
